package com.wx.wechat.Interface;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * @author wx
 * @Description: 微信支付请求接口
 * @date 2018/10/29 002919:21
 */
public interface WeChatPay {

    /**
     * @description: 统一下单
     * @author: wx
     * @date: 2018/10/29 0029
     * @param route
     * @return: retrofit2.Call<java.lang.ResponseBody>
     */
    @POST("/pay/unifiedorder")
    Call<ResponseBody> unifiedOrder(@Body RequestBody route);
    
    /**
     * @description: 申请退款（请求需要双向证书）
     * @author: wx
     * @date: 2018/11/5 0005
     * @param route
     * @return: retrofit2.Call<okhttp3.ResponseBody>
     */
    @POST("/pay/refund")
    Call<ResponseBody> refund(@Body RequestBody route);
}
